package com.enmonster.resolve.original;

import com.enmonster.commons.SQLCommon;
import lombok.Data;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @Author wuxi
 * @create 2019/4/10 下午4:21
 *
 * 注解方法基本对象
 */
@Data
public class ModelOriginal {

    /**
     * 注解类型
     */
    private SQLCommon type;

    /**
     * 执行的sql语句
     */
    private String sql;

    /**
     * 键值对的代理对象的参数
     */
    private ConcurrentHashMap<String,Object> paramMap = new ConcurrentHashMap();

    /**
     * 调用的jdbc执行参数
     */
    private List<Object>  paramxEcuteList = new ArrayList<>();

    /**
     * 注解类容中的sql
     */
    private String originalSql;


    @Override
    public String toString() {
        return "ModelOriginal{" +
                "type=" + type +
                ", sql='" + sql + '\'' +
                ", paramMap=" + paramMap +
                ", paramxEcuteList=" + paramxEcuteList +
                ", originalSql='" + originalSql + '\'' +
                '}';
    }
}
